<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core">

    <body>

        <ui:composition template="./UserTemplate.xhtml">

            <ui:define name="content">
                <h1>Login</h1>
                <h:form id="login">
                    <p:fieldset legend="Login">
                        <h:panelGrid columns="3" cellpadding="10">
                            <h:outputText value="User Name "/>
                            <p:inputText id="username" required="true" value="#{managerCustomer.email}" />
                            <p:message for="username" display="icon"/>

                            <h:outputText value="Password "/>
                            <p:password id="password" required="true" feedback="false" minLength="6" value="#{managerCustomer.password}" />
                            <p:message for="password" display="icon"/>

                            
                            <h:outputText value=" "/>
                            <h:commandLink action="#{managerCustomer.loginUserCustomer}">
                                <p:graphicImage value="../resources/images/User/login-Button.png" width="120" height="50" style="border: 0" />
                            </h:commandLink>

                        </h:panelGrid>
                    </p:fieldset>
                </h:form>
                <br/>
                <h1>Register</h1>
                <h:form id="registe">
                    <p:fieldset legend="Information Login">
                        <h:panelGrid columns="3" cellpadding="10">

                            <h:outputText value="Email "/>
                            <p:inputText id="email" required="true" value="#{managerCustomer.email}" />
                            <p:message for="email" display="icon"/>

                            <h:outputText value="Password "/>
                            <p:password id="password" required="true" feedback="false" minLength="6" value="#{managerCustomer.password}" />
                            <p:message for="password" display="icon"/>
                        </h:panelGrid>
                    </p:fieldset>
                    <br/>
                    <p:fieldset legend="Information Profile">
                        <h:panelGrid columns="3" cellpadding="10">
                           

                            <h:outputText value="FullName "/>
                            <p:inputText id="fullName" required="true" value="#{managerCustomer.fullName}" />
                            <p:message for="fullName" display="icon"/>

                 

                            <h:outputText value="Address "/>
                            <p:inputText id="address" required="true" value="#{managerCustomer.address}" />
                            <p:message for="address" display="icon"/>

                            <h:outputText value="Amount "/>
                            <p:inputText id="amount" required="true" value="#{managerCustomer.amount}" />
                            <p:message for="amount" display="icon"/>

                             <h:outputText value="Phone "/>
                            <p:inputText id="phone" required="true" value="#{managerCustomer.phone}" />
                            <p:message for="phone" display="icon"/>

                            <h:outputText value=""/>
                            <h:outputText value=""/>
                            <h:commandLink actionListener="#{managerCustomer.insertCustomer}" action="Home">
                                <p:graphicImage value="../resources/images/User/Register-Button.jpg" width="120" height="50" style="border: 0" />
                            </h:commandLink>
                        </h:panelGrid>
                        <h3 style="color: red" align="left"></h3>
                    </p:fieldset>
                </h:form>
            </ui:define>

        </ui:composition>

    </body>
</html>
